home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 51
/
Amiga Format CD51 (2000-03-10)(Future Publishing)(GB)[!][issue 2000-04].iso
/
-serious-
/
cd-rom
/
optympegsave
/
tools
/
savempeg
< prev
Wrap
AmigaDOS Script File
|
2000-01-31
|
3KB
|
94 lines
.key FREQ/A,MODE/A,BIT/A,OUT/A,PATH
.bra {
.ket }
.def PATH Tools
; ««« SaveMPeg »»» - modified by Michal Jarzynski to use with OptyMPEGSave 1.2b
; 1999.XII.05
failat 21
set quality "-f" ; "-f" - lower quality, faster encode
; " " - normal quality
; "-h" - high quality, lower encode
set MusicIn MusicIn ; name of MusicIn encoder program (example "C:MusicIn")
set LAME LAME ; name of LAME encoder program (example "C:LAME.040" or "runelf C:LAME.elf")
cd {PATH}
Stack 120000
ChangeTaskPri -1
OptyMPEGSave MODE {MODE} MP3
IF WARN
RequestChoice "OptyMPEG Save" "Click Abort*nin OptyCDPlayer window*nto continue." "OK"
ReadFile PIPE:OptyCDPlayer
ELSE
;$MusicIn -s {FREQ} -l $OptyLAYER -m $OptyMODE -b $OptyBITRATE PIPE:OptyCDPlayer {OUT}
;$MusicIn -s {FREQ} -l 2 -m {MODE} -b {BIT} PIPE:OptyCDPlayer {OUT}
IF $OptyMODE EQ "m" ; mono
$MusicIn -s {FREQ} -l $OptyLAYER -m $OptyMODE -b $OptyBITRATE PIPE:OptyCDPlayer {OUT}
IF WARN
RequestChoice "OptyMPEG Save Error" "Can't run MusicIn !*nClick Abort*nin OptyCDPlayer window*nto continue." "OK"
ReadFile PIPE:OptyCDPlayer
ENDIF
ENDIF
IF $OptyMODE EQ "s" ; stereo
$MusicIn -s {FREQ} -l $OptyLAYER -m $OptyMODE -b $OptyBITRATE PIPE:OptyCDPlayer {OUT}
IF WARN
RequestChoice "OptyMPEG Save Error" "Can't run MusicIn !*nClick Abort*nin OptyCDPlayer window*nto continue." "OK"
ReadFile PIPE:OptyCDPlayer
ENDIF
ENDIF
IF $OptyMODE EQ "d" ; dual channel
$MusicIn -s {FREQ} -l $OptyLAYER -m $OptyMODE -b $OptyBITRATE PIPE:OptyCDPlayer {OUT}
IF WARN
RequestChoice "OptyMPEG Save Error" "Can't run MusicIn !*nClick Abort*nin OptyCDPlayer window*nto continue." "OK"
ReadFile PIPE:OptyCDPlayer
ENDIF
ENDIF
IF $OptyMODE EQ "j" ; join steeo
$MusicIn -s {FREQ} -l $OptyLAYER -m $OptyMODE -b $OptyBITRATE PIPE:OptyCDPlayer {OUT}
IF WARN
RequestChoice "OptyMPEG Save Error" "Can't run MusicIn !*nClick Abort*nin OptyCDPlayer window*nto continue." "OK"
ReadFile PIPE:OptyCDPlayer
ENDIF
ENDIF
IF $OptyMODE EQ "1" ; LAME mono
$LAME -m m -r -s {FREQ} -b $OptyBITRATE $quality PIPE:OptyCDPlayer {OUT}
IF WARN
RequestChoice "OptyMPEG Save Error" "Can't run LAME !*nClick Abort*nin OptyCDPlayer window*nto continue." "OK"
ReadFile PIPE:OptyCDPlayer
ENDIF
ENDIF
IF $OptyMODE EQ "2" ; LAME stereo
$LAME -m s -r -s {FREQ} -b $OptyBITRATE $quality PIPE:OptyCDPlayer {OUT}
IF WARN
RequestChoice "OptyMPEG Save Error" "Can't run LAME !*nClick Abort*nin OptyCDPlayer window*nto continue." "OK"
ReadFile PIPE:OptyCDPlayer
ENDIF
ENDIF
IF $OptyMODE EQ "3" ; LAME join stereo
$LAME -m j -r -s {FREQ} -b $OptyBITRATE $quality PIPE:OptyCDPlayer {OUT}
IF WARN
RequestChoice "OptyMPEG Save Error" "Can't run LAME !*nClick Abort*nin OptyCDPlayer window*nto continue." "OK"
ReadFile PIPE:OptyCDPlayer
ENDIF
ENDIF
IF $OptyMODE EQ "4" ; LAME ms-stereo
$LAME -m f -r -s {FREQ} -b $OptyBITRATE $quality PIPE:OptyCDPlayer {OUT}
IF WARN
RequestChoice "OptyMPEG Save Error" "Can't run LAME !*nClick Abort*nin OptyCDPlayer window*nto continue." "OK"
ReadFile PIPE:OptyCDPlayer
ENDIF
ENDIF
ENDIF